<div class="subhead">Forgot Password</div>
<div class="bodywrap" style="background:#f7ecde; min-height:500px">
  <div class="cont">
  	<div class="formcss">
  	<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
		<?php if(Yii::app()->user->hasFlash('error')){
       echo "<div style='color:red;'>".Yii::app()->user->getFlash('error')."</div>";
    }?>
       		
		<?php echo $form->textField($model,'username',array('value'=>'Email Address','onfocus'=>'setfields("Users_username")')); ?>
		
   
        <div class="button">
         <?php echo CHtml::submitButton('Submit',array("data-icon"=>"arrow-r", "rel"=>"external","data-role"=>"button","class"=>"ui-btn-right","data-theme"=>"e" )); ?>
        </div>
        <?php $this->endWidget(); ?>
      </div> 
    </div>     
    </div>

<script type="text/javascript">
function setfields($id)
{
	document.getElementById($id).value="";
}
</script>
